<!-- JSON工具 -->
<div id="json-formatter" class="content-section">
    <div class="tool-container">
        <h2>JSON工具</h2>
        <div>
            <textarea id="json-input" rows="10" placeholder="请输入JSON字符串..."></textarea>
        </div>
        <div>
            <button onclick="formatJson()">格式化</button>
            <button onclick="minifyJson()">压缩</button>
            <button onclick="clearJson()">清空</button>
            <button onclick="copyToClipboard()" id="copy-button" disabled>复制结果</button>
        </div>
        <div class="result" id="json-result">
            格式化结果将显示在这里
        </div>
    </div>
</div>